<?php
/**
 *
 * @author Mike Gao
 */
class SupplierCustomViewModel extends ViewModel{
    protected $pk  = 'Supplier.id';

    public $viewFields = array(
    	'Supplier' => array('*'),
    	'Supplier_reaction_type' => array( '_on' => 'Supplier_reaction_type.supplier_id = Supplier.id ' ),
        'Reaction_type' => array('name'=>'reaction_name', '_on' => 'Reaction_type.id = Supplier_reaction_type.reaction_type_id'),
        'Supplier_product_class' => array( '_on' => 'Supplier_product_class.supplier_id = Supplier.id ' ),
        'Product_class' => array('name'=>'pclass_name', '_on' => 'Product_class.id = Supplier_product_class.product_class_id'),
        
    );


}
?>
